package com.lh.eemsserver.Service.ServiceImple;

import com.lh.eemsserver.Mapper.SpecialistMapper;
import com.lh.eemsserver.Service.SpecialistService;
import com.lh.eemsserver.po.Procedure;
import com.lh.eemsserver.po.Report;
import com.lh.eemsserver.po.User;
import org.apache.ibatis.annotations.Update;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SpecialistServiceImple implements SpecialistService {

    @Autowired
    private SpecialistMapper specialistMapper;


    @Override
    public List<Report> listAllReport() {
        return specialistMapper.listAllReport();
    }

    @Override
    public List<Procedure> getProcedure(Report report) {
        return specialistMapper.getProcedure(report);
    }

    @Override
    public int renewUpdaterInfo(Report report) {
        return specialistMapper.renewUpdaterInfo(report);
    }

    @Override
    public User getUserName(User user) {
        return specialistMapper.getUserName(user);
    }

    @Override
    public Report getReportById(Report report) {
        return specialistMapper.getReportById(report);
    }

    @Override
    public int getProcedureNum(Report report) {
        return specialistMapper.getProcedureNum(report);

    }

    @Override
    public int setUpdaterInfo(Report report){
        return specialistMapper.setUpdaterInfo(report);
    }

    @Override
    public int renewreportState(Report report){
        return specialistMapper.renewreportState(report);
    }

    @Override
    public List<Report> listAllReportExceptApprovalPending(){
        return specialistMapper.listAllReportExceptApprovalPending();
    }
}